package com.yun.algorithmproblem.huaweiod;

public class OD343 {
    public static void main(String[] args){
//        Scanner sc=new Scanner(System.in);
//        String s=sc.nextLine();
        System.out.println(maxLen("alolobo"));
    }

    private static int maxLen(String s){
        char[] ch=s.toCharArray();
        int count=0;
        for (char c : ch) {
            if (c == 'o') {
                count++;
            }
        }
        if(count%2==0){
            return ch.length;
        }else {
            return ch.length - 1;
        }
    }
}
